package com.feynman.pattern.singleton.hungry;

/**
 * @ClassName HungrySingleton
 * @Description 饿汉模式单例
 * @Author Feynman
 * @date 2019/4/4 16:53
 * @Version V1.0
 **/
public class HungrySingleton {

    private static final HungrySingleton hungrySingleton = new HungrySingleton();

    private HungrySingleton(){

    }
    public static HungrySingleton getInstance(){
        return  hungrySingleton;
    }

}
